<?php

/* @var $this yii\web\View */

?>
<?= 'home' ?>

<?php $this->beginBlock('work') ?>
$().ready(function() {
    var nav_focus_id = "<?php
    if($navid) {
        echo $navid;
    } else {
        echo 'home';
    }
    ?>";
    $("a[data-id='" + nav_focus_id + "']").addClass('selected');
});
<?php $this->endBlock() ?>
<?php $this->registerJs($this->blocks['work'], \yii\web\View::POS_END); ?>

